<!--项目提交测试-->
<template>
  <div>
    <el-form :model="checkForm" label-width="100px" class="demo-ruleForm">
      <el-form-item label="项目id" prop="projectId" v-if="true">
        <el-input type="text" :rows="7" v-model="checkForm.projectId" style="width: 300px;" value="4a56d15ddfb3a6859986fe1e77855747"></el-input>
      </el-form-item>

      <el-form-item>
        <el-button type="primary" @click="submitForm(checkForm)">提交</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
  import {submitProject } from '@/api/project'
export default {
  data() {
    return {
      checkForm: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: '',
      },
      sendCheckPerson: true,
      sendCheckPersons: [],
      value: ''
    };
  },
  methods: {
    submitForm() {
      this.$confirm('确定提交吗?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        // 查询数据 构造页面
        submitProject(this.checkForm.projectId)
          .then((data) => {
               this.$notify.success({
                title: '成功',
                message: '操作成功'
              })
          })
      })
    },
  },
};
</script>
